package com.xxc.hs.bean;

public class SourceRecord {
    private int id;
    private String productName;     // 产品名称
    private String productSpec;     // 产品规格
    private String productBatch;    // 产品批次号
    private String farmingDate;     // 养殖阶段时间
    private String fishingDate;     // 捕捞阶段时间
    private String processingDate;  // 加工阶段时间
    private String transportationDate; // 运输阶段时间
    private String sourceInfo;      // 溯源信息
    private String inputTime;       // 录入时间

    // 构造函数
    public SourceRecord(String productName, String productSpec, String productBatch,
                        String farmingDate, String fishingDate, String processingDate,
                        String transportationDate, String sourceInfo, String inputTime) {
        this.productName = productName;
        this.productSpec = productSpec;
        this.productBatch = productBatch;
        this.farmingDate = farmingDate;
        this.fishingDate = fishingDate;
        this.processingDate = processingDate;
        this.transportationDate = transportationDate;
        this.sourceInfo = sourceInfo;
        this.inputTime = inputTime;
    }

    // 用于数据库查询的构造函数
    public SourceRecord(int id, String productName, String productSpec, String productBatch,
                        String farmingDate, String fishingDate, String processingDate,
                        String transportationDate, String sourceInfo, String inputTime) {
        this.id = id;
        this.productName = productName;
        this.productSpec = productSpec;
        this.productBatch = productBatch;
        this.farmingDate = farmingDate;
        this.fishingDate = fishingDate;
        this.processingDate = processingDate;
        this.transportationDate = transportationDate;
        this.sourceInfo = sourceInfo;
        this.inputTime = inputTime;
    }

    // Getter和Setter方法
    public int getId() { return id; }
    public void setId(int id) { this.id = id; }
    public String getProductName() { return productName; }
    public void setProductName(String productName) { this.productName = productName; }
    public String getProductSpec() { return productSpec; }
    public void setProductSpec(String productSpec) { this.productSpec = productSpec; }
    public String getProductBatch() { return productBatch; }
    public void setProductBatch(String productBatch) { this.productBatch = productBatch; }
    public String getFarmingDate() { return farmingDate; }
    public void setFarmingDate(String farmingDate) { this.farmingDate = farmingDate; }
    public String getFishingDate() { return fishingDate; }
    public void setFishingDate(String fishingDate) { this.fishingDate = fishingDate; }
    public String getProcessingDate() { return processingDate; }
    public void setProcessingDate(String processingDate) { this.processingDate = processingDate; }
    public String getTransportationDate() { return transportationDate; }
    public void setTransportationDate(String transportationDate) { this.transportationDate = transportationDate; }
    public String getSourceInfo() { return sourceInfo; }
    public void setSourceInfo(String sourceInfo) { this.sourceInfo = sourceInfo; }
    public String getInputTime() { return inputTime; }
    public void setInputTime(String inputTime) { this.inputTime = inputTime; }
}